package yuan.deng;


import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import yuan.deng.config.SpringConfig;
import yuan.deng.domain.Account;
import yuan.deng.service.AccountService;
import yuan.deng.service.impl.AccountServiceImpl;

import java.util.List;

public class App {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext anno=new AnnotationConfigApplicationContext(SpringConfig.class);
        AccountService accountService = anno.getBean("accountService",AccountService.class);
        List<Account> all = accountService.findAll();
        System.out.println(all.toString());
    }
}
